﻿@{
    ViewBag.Title = "Enable1";
}

<p>
    <input type='checkbox' data-bind="checked: hasCellphone" />
    I have a cellphone
</p>
<p>Your cellphone number:
    <input type='text' data-bind="value: cellphoneNumber, enable: hasCellphone" />
</p>

<script type="text/javascript">
    var viewModel = {
        hasCellphone: ko.observable(true),
        cellphoneNumber: ""
    };
    ko.applyBindings(viewModel);
</script>
